﻿'Params
'user (Required) : The last.fm username to fetch the charts of.
'from (Optional) : The date at which the chart should start from. See User.getWeeklyChartList for more.
'to (Optional) : The date at which the chart should end on. See User.getWeeklyChartList for more.
'api_key (Required) : A Last.fm API key.

'Auth
' This service does not require authentication. 

Public Class UserGetWeeklyTrackChart
	Inherits BaseRequest
    Dim user As String = ""
    Dim from_ As String = ""
    Dim to_ As String = ""


	Public xmlresponse As XDocument = Nothing

    Public Sub New(user As String, from_ As String, to_ As String)
        Me.user = user
        Me.from_ = from_
        Me.to_ = to_
    End Sub

	Public Sub sendRequest()
        InitializeMembers("user.getWeeklyTrackChart")

        AddMember("user", user, True)
        AddMember("from", from_, False)
        AddMember("to", to_, False)
        AddMember("api_key", My.Settings.api_key, False)

        xmlresponse = sendPOSTResponse()
	End Sub

	'	Public Function getResponse() As AlbumGetInfoResponse
	'	Dim response As New AlbumGetInfoResponse
	'		response.album = New Album(xmlresponse.<lfm>.<album>.First)
	'		Return response
	'	End Function
End Class
